/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.beans.indicator.view;

import com.beans.indicator.model.IndicatorModel;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.geom.Dimension2D;
import java.beans.*;


/**
 *
 * @author FreeFrag
 */
public class HorizontalIndicatorView extends AbstractIndicatorView {
    
    private int width = 80;
    private int height = 50;
    private int spacing = 5;
    
    public HorizontalIndicatorView(IndicatorModel model) {
        super(model);
        
        this.setPreferredSize(new Dimension(200,60));
        
            /*this.addComponentListener(new ComponentListener() {

            public void componentResized(ComponentEvent e) {
            }

            public void componentMoved(ComponentEvent e) {
            }

            public void componentShown(ComponentEvent e) {
            }

            public void componentHidden(ComponentEvent e) {
            }
        });*/
    }

    @Override
    protected void paintIndicatorFace(Graphics g) {
        Graphics2D g2 = getAAInstance(g);
        g2.setColor(background);
	g2.fillRect(5, 5, getWidth()-10, getHeight()-10);
	g2.setColor(Color.black);
	g2.drawRect(4, 4, getWidth()-8, getHeight()-8);
    }

    @Override
    protected void paintIndicator(Graphics g) {
      
    }

    @Override
    protected void paintDiode(Graphics g) {
        
    }

    @Override
    protected void paintTitle(Graphics g) {
        
    }
}

